
import java.awt.Graphics;
import java.util.HashMap;

import javax.swing.ImageIcon;


public class Monk extends NPC {

	private HashMap<String, Animation> animations = new HashMap<String, Animation>();
	
	public Monk(int x, int y, String text) {
		super(x, y, text);
		
		ImageIcon[] right = new ImageIcon[] {new ImageIcon("Images/Monk/MonkStandRight.png"), new ImageIcon("Images/Monk/MonkWalkRight1.png"), new ImageIcon("Images/Monk/MonkStandRight.png"), new ImageIcon("Images/Monk/MonkWalkRight2.png")};
		ImageIcon[] left = new ImageIcon[] {new ImageIcon("Images/Monk/MonkStandLeft.png"), new ImageIcon("Images/Monk/MonkWalkLeft1.png"), new ImageIcon("Images/Monk/MonkStandLeft.png"), new ImageIcon("Images/Monk/MonkWalkLeft2.png")};
		ImageIcon[] up = new ImageIcon[] {new ImageIcon("Images/Monk/MonkStandUp.png"), new ImageIcon("Images/Monk/MonkWalkUp1.png"), new ImageIcon("Images/Monk/MonkStandUp.png"), new ImageIcon("Images/Monk/MonkWalkUp2.png")};
		ImageIcon[] down = new ImageIcon[] {new ImageIcon("Images/Monk/MonkStandDown.png"), new ImageIcon("Images/Monk/MonkWalkDown1.png"), new ImageIcon("Images/Monk/MonkStandDown.png"), new ImageIcon("Images/Monk/MonkWalkDown2.png")};
		animations.put("UP", new Animation(up, false, 4, "UP"));
		animations.put("DOWN", new Animation(down, false, 4, "DOWN"));
		animations.put("LEFT", new Animation(left, false, 4, "LEFT"));
		animations.put("RIGHT", new Animation(right, false, 4, "RIGHT"));
		this.setAnimations(animations);
		this.setCurrentAnimation("DOWN");
	}
	
	public void draw(Graphics g){
		update();
		this.getCurrentAnimation().update();
		g.drawImage(getCurrentAnimation().getCurrentFrame().getImage(), (this.getX()*OurApplet.TILE_SIZE)+ this.getXOffset(), (this.getY()*OurApplet.TILE_SIZE) + this.getYOffset() - 32, null, null);
		//super.draw(g);
	}

}
